// eslint-disable-next-line
import { UserLayout, BasicLayout, BlankLayout, RouteView, PageView } from '@/layouts'

// 不刷新页面
// const RouteView = {
//   name: 'RouteView',
//   render: h => h('router-view')
// }

export const asyncRouterMap = [
  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: {
      title: 'menu.home'
    },
    redirect: '/dashboard/Home',
    children: [
      /*
      {
        path: '/dashboard/workplace/:pageNo([1-9]\\d*)?',
        name: 'Workplace',
        component: () => import('@/views/dashboard/Workplace'),
        meta: { title: 'menu.dashboard.workplace', keepAlive: true, icon: 'dashboard', permission: [ 'dashboard' ] }
      },
      {
        path: '/dashboard/analysis/:pageNo([1-9]\\d*)?',
        name: 'Analysis',
        component: () => import('@/views/dashboard/Analysis'),
        meta: { title: 'menu.dashboard.analysis', keepAlive: true, icon: 'dashboard', permission: [ 'dashboard' ] }
      },
      */

      /* 首页 */
      {
        path: '/dashboard/Home',
        name: 'Home',
        component: () => import('@/views/dashboard/Home'),
        meta: { 
          title: '首页', 
          keepAlive: true, 
          icon: 'home',
          permission: [ 'dashboard' ] 
        }
      },

      // dashboard
      // {
      //   path: '/dashboard',
      //   name: 'dashboard',
      //   redirect: '/dashboard/Analysis',
      //   component: RouteView,
      //   meta: {
      //     title: 'menu.dashboard.title',
      //     keepAlive: true,
      //     icon: 'dashboard',
      //     permission: ['dashboard']
      //   },
      //   children: [
      //     {
      //       path: '/dashboard/analysis/:pageNo([1-9]\\d*)?',
      //       name: 'Analysis',
      //       component: () => import('@/views/dashboard/Analysis'),
      //       meta: { title: 'menu.dashboard.workplace', keepAlive: false, permission: [ 'dashboard' ] }
      //     },
      //     {
      //       path: '/dashboard/workplace',
      //       name: 'Workplace',
      //       component: () => import('@/views/dashboard/Workplace'),
      //       meta: { title: 'menu.dashboard.workplace', keepAlive: true, permission: [ 'dashboard' ] }
      //     }
      //   ]
      // },
      // dashboard
      // {
      //   path: '/dashboard',
      //   name: 'dashboard',
      //   redirect: '/dashboard/list',
      //   component: RouteView,
      //   meta: {
      //     title: 'menu.dashboard.title',
      //     keepAlive: true,
      //     icon: 'dashboard',
      //     permission: ['dashboard']
      //   },
      //   children: [
      //     {
      //       path: '/dashboard/list',
      //       name: 'DashboardList',
      //       component: () => import('@/views/dashboard/list'),
      //       meta: {
      //         title: 'menu.dashboard.list',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/dashboard/detail',
      //       name: 'DashboardDetail',
      //       component: () => import('@/views/dashboard/detail'),
      //       meta: {
      //         title: 'menu.dashboard.detail',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       },
      //       hidden: true
      //     },
      //     {
      //       path: '/dashboard/config',
      //       name: 'DashboardConfig',
      //       component: () => import('@/views/dashboard/config'),
      //       meta: {
      //         title: 'menu.dashboard.config',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     }
      //   ]
      // },
      // 业务管理
      // {
      //   path: '/category',
      //   name: 'category',
      //   redirect: '/category/list',
      //   component: RouteView,
      //   meta: {
      //     title: 'menu.category.title',
      //     keepAlive: true,
      //     icon: 'appstore',
      //     permission: ['dashboard']
      //   },
      //   children: [
      //     {
      //       path: '/category/list',
      //       name: 'categoryList',
      //       component: () => import('@/views/category/list'),
      //       meta: {
      //         title: 'menu.category.list',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/category/tag-list',
      //       name: 'categoryTagList',
      //       component: () => import('@/views/category/tagList'),
      //       meta: {
      //         title: 'menu.category.tagList',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     }
      //   ]
      // },
      // 业务画像
      // {
      //   path: '/portrait',
      //   name: 'Portrait',
      //   component: RouteView,
      //   meta: {
      //     title: 'menu.portrait.title',
      //     keepAlive: true,
      //     icon: 'schedule',
      //     permission: ['dashboard']
      //   },
      //   children: [
      //     {
      //       path: '/portrait/business',
      //       name: 'portraitBusiness',
      //       component: () => import('@/views/portrait/business'),
      //       meta: {
      //         title: 'menu.portrait.business',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/portrait/performance',
      //       name: 'portraitPerformance',
      //       component: () => import('@/views/portrait/performance'),
      //       meta: {
      //         title: '性能',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/portrait/transaction',
      //       name: 'portraitTransaction',
      //       component: () => import('@/views/portrait/transaction'),
      //       meta: {
      //         title: '交易',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/portrait/databaseServices',
      //       name: 'portraitDataservice',
      //       component: () => import('@/views/portrait/databaseServices'),
      //       meta: {
      //         title: '数据库',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/portrait/middleware',
      //       name: 'portraitMiddleware',
      //       component: () => import('@/views/portrait/middleware'),
      //       meta: {
      //         title: '中间件',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/portrait/alarmInfo',
      //       name: 'portraitAlarmInfo',
      //       component: () => import('@/views/portrait/alarmInfo'),
      //       meta: {
      //         title: '告警',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/portrait/changeInfo',
      //       name: 'portraitChangeInfo',
      //       component: () => import('@/views/portrait/changeInfo'),
      //       meta: {
      //         title: '变更',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/portrait/workSheet',
      //       name: 'portraitWorkSheet',
      //       component: () => import('@/views/portrait/workSheet'),
      //       meta: {
      //         title: '工单',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     }
      //   ]
      // },
      // esb展现
      // {
      //   path: '/screen',
      //   name: 'screen',
      //   component: RouteView,
      //   meta: {
      //     title: 'menu.screen.title',
      //     keepAlive: true,
      //     icon: 'desktop',
      //     permission: ['dashboard']
      //   },
      //   children: [
      //     {
      //       path: '/screen/channel-monitor',
      //       name: 'screenChannelMonitor',
      //       component: () => import('@/views/screen/channelMonitor'),
      //       meta: {
      //         title: 'menu.screen.channelMonitor',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       } 
      //     }
      //   ]
      // },
      // 标签管理
      // {
      //   path: '/label',
      //   name: 'label',
      //   redirect: '/label/main',
      //   component: RouteView,
      //   meta: {
      //     title: 'menu.label.title',
      //     keepAlive: true,
      //     icon: 'tags',
      //     permission: ['dashboard']
      //   },
      //   children: [
      //     {
      //       path: '/label/main',
      //       name: 'labelMain',
      //       component: () => import('@/views/label/main'),
      //       meta: {
      //         title: 'menu.label.main',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/label/list',
      //       name: 'labelList',
      //       component: () => import('@/views/label/list'),
      //       meta: {
      //         title: 'menu.label.list',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       },
      //       hidden: true
      //     },
      //     {
      //       path: '/label/detail',
      //       name: 'labelDetail',
      //       component: () => import('@/views/label/detail'),
      //       meta: {
      //         title: 'menu.label.detail',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }, 
      //       hidden: true
      //     },
      //     {
      //       path: '/label/all',
      //       name: 'labelAll',
      //       component: () => import('@/views/label/all'),
      //       meta: {
      //         title: 'menu.label.all',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     },
      //     {
      //       path: '/label/manage',
      //       name: 'labelManage',
      //       component: () => import('@/views/label/manage'),
      //       meta: {
      //         title: 'menu.label.manage',
      //         keepAlive: true,
      //         permission: ['dashboard']
      //       }
      //     }
      //   ]
      // },
      // 权限管理
      // {
      //   path: '/auth',
      //   name: 'auth',
      //   component: RouteView,
      //   meta: {
      //     title: 'menu.auth.title',
      //     keepAlive: true,
      //     icon: 'lock',
      //     permission: ['dashboard']
      //   },
      //   children: [
      //     {
      //       path: '/auth/user',
      //       name: 'authUser',
      //       component: () => import('@/views/auth/user'),
      //       meta: {
      //         title: '用户管理',
      //         keepAlive: true
      //       }
      //     },
      //     {
      //       path: '/auth/role',
      //       name: 'authRole',
      //       component: () => import('@/views/auth/role'),
      //       meta: {
      //         title: '角色管理',
      //         keepAlive: true
      //       }
      //     },
      //     {
      //       path: '/auth/permission',
      //       name: 'authPermission',
      //       component: () => import('@/views/auth/permission'),
      //       meta: {
      //         title: '菜单权限管理',
      //         keepAlive: true
      //       }
      //     },
      //     {
      //       path: '/auth/menu',
      //       name: 'authMenu',
      //       component: () => import('@/views/auth/menu'),
      //       meta: {
      //         title: '菜单管理',
      //         keepAlive: true
      //       }
      //     }
      //   ]
      // },

      /*
      {
        path: '/category',
        name: 'category',
        redirect: '/category/list',
        component: RouteView,
        meta: {
          title: 'menu.category.title',
          keepAlive: true,
          icon: 'appstore',
          permission: ['dashboard']
        },
        children: [
          {
            path: '/category/list',
            name: 'categoryList',
            component: () => import('@/views/category/list'),
            meta: {
              title: 'menu.category.list',
              keepAlive: true,
              permission: ['dashboard']
            }
          },
          {
            path: '/category/tag-list',
            name: 'categoryTagList',
            component: () => import('@/views/category/tagList'),
            meta: {
              title: 'menu.category.tagList',
              keepAlive: true,
              permission: ['dashboard']
            }
          }
        ]
      },
      */

      {
        path: '/views',
        name: 'views',
        component: RouteView,
        meta: {
          title: '运行状态',
          keepAlive: true,
          icon: 'appstore',
          permission: ['dashboard']
        },
        children: [
          {
            path: '/appview',
            name: 'AppView',
            component: () => import('@/views/monitor/apps'),
            meta: {
              title: '业务应用',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/monitor/app-detail',
            name: 'AppDetail',
            component: () => import('@/views/monitor/appDetail'),
            meta: {
              title: '应用详情',
              keepAlive: true
            },
            hidden: true
          },
          {
            path: '/devview',
            name: 'DeviceView',
            component: () => import('@/views/patrol/devs'),
            meta: {
              title: '硬件设备',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/patrol/srv-detail',
            name: 'DeviceServerDetail',
            component: () => import('@/views/patrol/devDetailServer'),
            meta: {
              title: '服务器',
              keepAlive: true
            },
            hidden: true
          },
          {
            path: '/patrol/net-detail',
            name: 'DeviceNetworkDetail',
            component: () => import('@/views/patrol/devDetailNetwork'),
            meta: {
              title: '网络设备',
              keepAlive: true
            },
            hidden: true
          },
          {
            path: '/monitor/host-list',
            name: 'hostsList',
            component: () => import('@/views/monitor/hosts'),
            meta: {
              title: '操作系统',
              keepAlive: true,
              permission: ['dashboard']
            },
            hidden: true
          },
          {
            path: '/monitor/host-details',
            name: 'hostsDetails',
            component: () => import('@/views/monitor/hostDetail'),
            meta: {
              title: '主机详情',
              keepAlive: true
            },
            hidden: true
          }
        ]
      },

      {
        path: '/cmdb',
        name: 'cmdb',
        component: RouteView,
        meta: {
          title: '数据服务',
          keepAlive: true,
          icon: 'deployment-unit',
          permission: ['dashboard']
        },
        children: [
          {
            path: '/cmdb/hosts',
            name: 'cmdbHosts',
            component: () => import('@/views/cmdb/hosts'),
            meta: {
              title: '系统主机',
              keepAlive: true
            }
          },
          {
            path: '/cmdb/devices',
            name: 'cmdbDevices',
            component: () => import('@/views/cmdb/devices'),
            meta: {
              title: '物理设备',
              keepAlive: true
            }
          }     
        ]
      }, 

      {
        path: '/basis',
        name: 'basis',
        component: RouteView,
        meta: {
          title: '基础信息',
          keepAlive: true,
          icon: 'setting',
          permission: ['dashboard']
        },
        children: [
          {
            path: '/cmdb/apps',
            name: 'cmdbApps',
            component: () => import('@/views/cmdb/apps'),
            meta: {
              title: '业务应用',
              keepAlive: true
            }
          },
          {
            path: '/cmdb/zones',
            name: 'cmdbZones',
            component: () => import('@/views/cmdb/zones'),
            meta: {
              title: '服务区域',
              keepAlive: true
            }
          },
          {
            path: '/cmdb/clouds',
            name: 'cmdbClouds',
            component: () => import('@/views/cmdb/clouds'),
            meta: {
              title: '所属平台',
              keepAlive: true
            }
          },
          {
            path: '/cmdb/orgs',
            name: 'cmdbOrgs',
            component: () => import('@/views/cmdb/orgs'),
            meta: {
              title: '组织部门',
              keepAlive: true
            }
          },
          {
            path: '/cmdb/locations',
            name: 'cmdbLocations',
            component: () => import('@/views/cmdb/locations'),
            meta: {
              title: '数据中心',
              keepAlive: true
            }
          },
          {
            path: '/cmdb/isvs',
            name: 'cmdbIsvs',
            component: () => import('@/views/cmdb/isvs'),
            meta: {
              title: '供应商',
              keepAlive: true
            }
          },
          {
            path: '/cmdb/metrics',
            name: 'cmdbMetrics',
            component: () => import('@/views/cmdb/metrics'),
            meta: {
              title: '监控指标',
              keepAlive: true
            }
          },
          {
            path: '/cmdb/systems',
            name: 'cmdbSystems',
            component: () => import('@/views/cmdb/systems'),
            meta: {
              title: '对接系统',
              keepAlive: true
            }
          }
        ]
      },

      /*
      {
        path: '/routine',
        name: 'routine',
        component: RouteView,
        meta: {
          title: '自动巡检',
          keepAlive: true,
          icon: 'desktop',
          permission: ['dashboard']
        },
        children: [
          {
            path: '/patrol/patrol-schedule',
            name: 'patrolSchedule',
            component: () => import('@/views/patrol/patrolSchedule'),
            meta: {
              title: '巡检计划',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/patrol/patrol-report',
            name: 'patrolReport',
            component: () => import('@/views/patrol/patrolReport'),
            meta: {
              title: '报告下载',
              keepAlive: true,
              permission: ['dashboard']
            } 
          }
        ]
      },

      {
        path: '/logz',
        name: 'logz',
        component: RouteView,
        meta: {
          title: '日志分析',
          keepAlive: true,
          icon: 'file-search',
          permission: ['dashboard']
        },
        children: [
          {
            path: '/logz/search',
            name: 'logzSearch',
            component: () => import('@/views/logz/search'),
            meta: {
              title: '实时检索',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/logz/aggregate',
            name: 'logzAggregate',
            component: () => import('@/views/logz/aggregate'),
            meta: {
              title: '统计视图',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/logz/rules',
            name: 'logzRules',
            component: () => import('@/views/logz/rules'),
            meta: {
              title: '解析规则',
              keepAlive: true,
              permission: ['dashboard']
            }
          }
        ]
      },
      */

      {
        path: '/monitor',
        name: 'monitor',
        component: RouteView,
        meta: {
          title: '系统监控',
          keepAlive: true,
          icon: 'area-chart',
          permission: ['dashboard']
        },
        children: [
          {
            path: '/monitor/metrics',
            name: 'metricsQuery',
            component: () => import('@/views/monitor/metrics'),
            meta: {
              title: '指标查询',
              keepAlive: true,
              permission: ['dashboard']
            } 
          }        
        ]
      },

      {
        path: '/events',
        name: 'events',
        component: RouteView,
        meta: {
          title: '告警中心',
          keepAlive: true,
          icon: 'alert',
          permission: ['dashboard']
        },
        children: [
          {
            path: '/events/active',
            name: 'eventsActive',
            component: () => import('@/views/events/active'),
            meta: {
              title: '事件列表',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/events/history',
            name: 'eventsHistory',
            component: () => import('@/views/events/history'),
            meta: {
              title: '查询统计',
              keepAlive: true,
              permission: ['dashboard']
            } 
          }     
        ]
      },

      {
        path: '/engine',
        name: 'engine',
        component: RouteView,
        meta: {
          title: '规则引擎',
          keepAlive: true,
          icon: 'bars',
          permission: ['dashboard']
        },
        children: [
          {
            path: '/engine/enrichs',
            name: 'engineEnrichs',
            component: () => import('@/views/engine/enrichs'),
            meta: {
              title: '信息丰富',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/engine/inhibits',
            name: 'engineInhibits',
            component: () => import('@/views/engine/inhibits'),
            meta: {
              title: '压缩抑制',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/engine/groups',
            name: 'engineGroups',
            component: () => import('@/views/engine/groups'),
            meta: {
              title: '关联恢复',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/engine/receivers',
            name: 'engineReceivers',
            component: () => import('@/views/engine/receivers'),
            meta: {
              title: '通知策略',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/engine/silences',
            name: 'engineSilences',
            component: () => import('@/views/engine/silences'),
            meta: {
              title: '维护期',
              keepAlive: true,
              permission: ['dashboard']
            } 
          },
          {
            path: '/engine/integration',
            name: 'engineIntegration',
            component: RouteView,
            meta: {
              title: 'Integration',
              keepAlive: true,
              permission: ['dashboard']
            },
            children: [
              {
                path: '/engine/integration/alertmanager',
                name: 'engineIntegrationAlertmanager',
                component: () => import('@/views/engine/integration/alertmanager'),
                meta: {
                  title: 'Alertmanager',
                  keepAlive: true,
                  permission: ['dashboard']
                } 
              },
              {
                path: '/engine/integration/elastic',
                name: 'engineIntegrationElastic',
                component: () => import('@/views/engine/integration/elastic'),
                meta: {
                  title: 'Elasticsearch',
                  keepAlive: true,
                  permission: ['dashboard']
                } 
              },
              {
                path: '/engine/integration/zabbix',
                name: 'engineIntegrationZabbix',
                component: () => import('@/views/engine/integration/zabbix'),
                meta: {
                  title: 'Zabbix',
                  keepAlive: true,
                  permission: ['dashboard']
                } 
              }
            ]
          }
        ]
      },

      /* Exception */
      {
        path: '/exception',
        name: 'exception',
        component: RouteView,
        redirect: '/exception/403',
        hidden: true,
        meta: {
          title: 'menu.exception.title',
          icon: 'warning',
          permission: ['exception']
        },
        children: [
          {
            path: '/exception/403',
            name: 'Exception403',
            component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/403'),
            meta: {
              title: 'menu.exception.notPermission',
              permission: ['exception']
            }
          },
          {
            path: '/exception/404',
            name: 'Exception404',
            component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404'),
            meta: {
              title: 'menu.exception.notFind',
              permission: ['exception']
            }
          },
          {
            path: '/exception/500',
            name: 'Exception500',
            component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/500'),
            meta: {
              title: 'menu.exception.serverError',
              permission: ['exception']
            }
          }
        ]
      },

      // account
      {
        path: '/account/center',
        name: 'center',
        component: () => import('@/views/account/center/Index'),
        hidden: true,
        meta: { title: '个人中心', hidden: true, keepAlive: true, permission: [ 'user' ] }
      }
      // {
      //   path: '/dashboard/Home',
      //   name: 'Home',
      //   component: () => import('@/views/dashboard/Home'),
      //   meta: { 
      //     title: '首页', 
      //     keepAlive: true, 
      //     icon: 'home',
      //     permission: [ 'dashboard' ] 
      //   }
      // }
      // {
      //   path: '/account',
      //   component: RouteView,
      //   redirect: '/account/center',
      //   name: 'account',
      //   meta: { title: '个人页', icon: 'user', keepAlive: true, permission: [ 'user' ] },
      //   children: [
      //     {
      //       path: '/account/center',
      //       name: 'center',
      //       component: () => import('@/views/account/center/Index'),
      //       meta: { title: '个人中心', keepAlive: true, permission: [ 'user' ] }
      //     },
      //     {
      //       path: '/account/settings',
      //       name: 'settings',
      //       component: () => import('@/views/account/settings/Index'),
      //       meta: { title: '个人设置', hideHeader: true, permission: [ 'user' ] },
      //       redirect: '/account/settings/base',
      //       hideChildrenInMenu: true,
      //       children: [
      //         {
      //           path: '/account/settings/base',
      //           name: 'BaseSettings',
      //           component: () => import('@/views/account/settings/BaseSetting'),
      //           meta: { title: '基本设置', hidden: true, permission: [ 'user' ] }
      //         },
      //         {
      //           path: '/account/settings/security',
      //           name: 'SecuritySettings',
      //           component: () => import('@/views/account/settings/Security'),
      //           meta: { title: '安全设置', hidden: true, keepAlive: true, permission: [ 'user' ] }
      //         },
      //         {
      //           path: '/account/settings/custom',
      //           name: 'CustomSettings',
      //           component: () => import('@/views/account/settings/Custom'),
      //           meta: { title: '个性化设置', hidden: true, keepAlive: true, permission: [ 'user' ] }
      //         },
      //         {
      //           path: '/account/settings/binding',
      //           name: 'BindingSettings',
      //           component: () => import('@/views/account/settings/Binding'),
      //           meta: { title: '账户绑定', hidden: true, keepAlive: true, permission: [ 'user' ] }
      //         },
      //         {
      //           path: '/account/settings/notification',
      //           name: 'NotificationSettings',
      //           component: () => import('@/views/account/settings/Notification'),
      //           meta: { title: '新消息通知', hidden: true, keepAlive: true, permission: [ 'user' ] }
      //         }
      //       ]
      //     }
      //   ]
      // }
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      },
      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
      },
      {
        path: 'recover',
        name: 'recover',
        component: undefined
      }
    ]
  },
  {
    path: '/redirect/RedirectList',
    name: 'redirectList',
    component: () => import('@/views/redirect/RedirectList')
  },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
]
